package bibliotheque.server.remote;

import bibliotheque.client.remote.ClientRemoteIS;
import bibliotheque.document.DocumentId;
import bibliotheque.transaction.TransactionId;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

public interface ServerRemoteIC extends Remote {
    
    public void Add(ClientRemoteIS client, String title, String summary, String content) throws RemoteException;
    public void Consult(String id, ClientRemoteIS client, ArrayList<String> filtre) throws RemoteException;
    public void Withdraw(String id, ClientRemoteIS client, ArrayList<String> filtre) throws RemoteException;
    public void Free(TransactionId tid, DocumentId did) throws RemoteException;
    public void Read(TransactionId tid, DocumentId did) throws RemoteException;
    public void Validate(TransactionId tid) throws RemoteException;
    public void Invalidate(TransactionId tid) throws RemoteException;
}
